package cn.hbads.test.context;

import cn.hbads.test.model.TaskProcessModel;
import cn.hbads.test.task.ExecuteTask;

import java.util.List;

/**
 * <b> 任务执行监控器 </b>
 *
 * @author : yvvb
 * @date : 2025/5/11
 */
public interface TaskMonitor {
    void recordProcess(TaskProcessModel taskProcessModel);

    void recordSuccess(String taskName, String extraMessage);

    void recordFailure(String taskName, String failureReason);

    void startBatchTaskList(List<ExecuteTask> tasks);

    void interruptBatchTasksExecute(String batchNo, String taskName);

    void successEndBatchTaskExecute(String batchNo);
}
